<template>
	<view class="header">
		<view class="logo">这里是logo</view>
		<view>
			<up-icon name="list-dot" size="32" color="#ffef0c" v-if="!isExpand" @click="toExpand(true)"></up-icon>
			<up-icon name="close-circle" size="32" color="#ffef0c" v-else @click="toExpand(false)"></up-icon>
		</view>
	</view>
</template>

<script setup>
import { ref } from 'vue';


const emit = defineEmits(['change']);

let isExpand = ref(false)

const toExpand = (type) => {
	isExpand.value = type
	emit("change", isExpand.value)
}
</script>

<style lang="scss" scoped>
	.header{
		height: 120rpx;
		position: relative;
		top: 0;
		left: 0;
		background-color: $uni-bg-color;
		box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.15);
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 10rpx;
		
		> .logo{
			
		}
	}
</style>
